package adv4;

import java.util.Random;

public class RandomTest {

	public static void main(String[] args) {
		Random r = new Random();
		for (int i = 1; i <= 20; i++) {
			System.out.println("boolean:" + r.nextBoolean());
			System.out.println("Double:" + r.nextDouble());
			System.out.println("nextInt(100):" + r.nextInt(100));
			System.out.println("int:" + r.nextInt());

		}
		byte b[] = new byte[40];
		r.nextBytes(b);
		System.out.println(new String(b));
	}

}
